<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Model;

class UserModel extends Model
{
    protected $table = 'bank_user';
    protected $primaryKey = "user_id";
    protected $guarded = [];


    static function findUserByOpenid($openId){

        return self::where('openid',$openId)->first();
    }
}
